import { apiResquest } from './http.js'
 
 //////////////////////////////////////////index 首页//////////////////////////////////////////////////////
 
 
 //获取微信AppId
 export const appid  = (query) => {
 	return apiResquest({
 		url:'merchant/index/appid',
 		method: 'GET',
         query: {...query}
 	})
 } 
 
 //获取地区列表
 export const getCityList  = (query) => {
 	return apiResquest({
 		url:'merchant/index/getCityList',
 		method: 'GET',
         query: {...query}
 	})
 } 
 
 //获取公告列表
 export const getNoticeList  = (query) => {
 	return apiResquest({
 		url:'merchant/index/notice',
 		method: 'GET',
         query: {...query}
 	})
 } 
 //获取公告详情
 export const getNoticeDetails  = (query) => {
 	return apiResquest({
 		url:'merchant/index/noticeDetails',
 		method: 'GET',
         query: {...query}
 	})
 } 
 
 //获取店铺列表
 export const getStoreList  = (query) => {
 	return apiResquest({
 		url:'merchant/index/getStoreList',
 		method: 'GET',
         query: {...query}
 	})
 }
 
 //获取店铺活动列表
 export const getActivityList  = (query) => {
 	return apiResquest({
 		url:'merchant/index/getActivityList',
 		method: 'GET',
         query: {...query}
 	})
 }
 
 export const getActivityDetail  = (query) => {
 	return apiResquest({
 		url:'merchant/index/getActivityDetail',
 		method: 'GET',
         query: {...query}
 	})
 }
 //微信配置
 export const getWxConfig  = (query) => {
 	return apiResquest({
 		url:'merchant/index/getWxConfig',
 		method: 'GET',
         query: {...query}
 	})
 }
 
 //首页数据加载
 export const getIndexData  = (query) => {
 	return apiResquest({
 		url:'merchant/index/index',
 		method: 'GET',
         query: {...query}
 	})
 }
 

 //////////////////////////////////////////user 商家//////////////////////////////////////////////////////
 

 //获取商家主页
 export const getUserIndex = (query) => {
 	return apiResquest({
 		url:'merchant/user/index',
 		method: 'GET',
         query: {...query}
 	})
 }

 //发送验证码
 export const send = (query) => {
 	return apiResquest({
 		url: 'sms/send',
 		method: 'POST',
 		query: {...query}
 	})
 }
 
 //获取订单列表
 export const getOrderList = (query) => {
 	return apiResquest({
 		url: 'merchant/user/getOrderList',
 		method: 'GET',
 		query: {...query}
 	})
 }
 
 //获取订单列表
 export const getOrderSumList = (query) => {
 	return apiResquest({
 		url: 'merchant/user/getOrderSumList',
 		method: 'GET',
 		query: {...query}
 	})
 }
 
 //获取结算列表
 export const getSettlementList = (query) => {
 	return apiResquest({
 		url: 'merchant/user/getSettlementList',
 		method: 'GET',
 		query: {...query}
 	})
 }
 
 //订单再次支付
 export const repay = (query) => {
 	return apiResquest({
 		url: 'merchant/user/repay',
 		method: 'POST',
 		query: {...query}
 	})
 }
 //商家结算
 export const muiltpay = (query) => {
 	return apiResquest({
 		url: 'merchant/user/muiltpay',
 		method: 'POST',
 		query: {...query}
 	})
 }
 
 //微信登录
 export const wxLogin = (query) => {
 	return apiResquest({
 		url: 'merchant/user/wxLogin',
 		method: 'GET',
 		query: {...query}
 	})
 }
 
 
 //退出登录
 export const logout = (query) => {
 	return apiResquest({
 		url: 'merchant/user/logout',
 		method: 'POST',
 		query: {...query}
 	})
 }